import { Component } from "react";

export default class Form extends Component{
    state={
        username:"admin",
    }
    render(){
        return(
            <>
            <p>
              <input value={this.state.username} onChange={this.userChange} /></p>

            </>
        )
    }
    userChange=(e)=>{
        this.setState({username:e.target.value})
        console.log(e.target.value);
    }
}